package cn.tedu.micro.service.order.controller;
import cn.tedu.micro.service.common.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class RestTemplateController {
    @Autowired
    private RestTemplate restTemplate;

//    @GetMapping("/get")
//    public ResponseEntity<JsonResult> get(){
//     //  return restTemplate.getForEntity("http://localhost:8290/cart/select",JsonResult.class);
//       // return restTemplate.getForEntity("http://micro-servie-cart/cart/select/{1}/{2}",JsonResult.class,q1,q2);
//    }
}
